#ifndef SEARCHTHREAD_H
#define SEARCHTHREAD_H

#include <QObject>
#include <QThread>
#include "model.h"
#include "sqlitetools.h"
#include "api.h"
#include "trueapi.h"

class SearchThread : public QThread
{
    Q_OBJECT
public:
    explicit SearchThread(QObject *parent = nullptr);

    ~SearchThread();

public slots:
    void searchData(int groupNumber, int addr, QString currentDate);

signals:
    void signalSearchData(QByteArray& data);

private:
    SQLiteTools* sqlitetool = nullptr;

    Api* api = nullptr;

};

#endif // SEARCHTHREAD_H
